package priv.dajie.tzzq.model;

import priv.dajie.tzzq.bot.model.PayMethod;
import priv.dajie.tzzq.bot.model.SellItem;
import priv.dajie.tzzq.spider.model.Platform;

import java.math.BigDecimal;

public class AnalysisItem{
    private Code code;
    private SellItem sellItem;
    private Platform platform;
    private String goodsID;
    private PayMethod payMethod;
    private BigDecimal steamPrice;

    public AnalysisItem(Code code, SellItem sellItem, Platform platform, String goodsID, BigDecimal steamPrice) {
        this.code = code;
        this.sellItem = sellItem;
        this.platform = platform;
        this.goodsID = goodsID;
        this.steamPrice = steamPrice;
    }

    public AnalysisItem(Code code, SellItem sellItem, Platform platform, String goodsID, BigDecimal steamPrice, PayMethod payMethod) {
        this.code = code;
        this.sellItem = sellItem;
        this.platform = platform;
        this.goodsID = goodsID;
        this.steamPrice = steamPrice;
        this.payMethod = payMethod;
    }

    public PayMethod getPayMethod() {
        return payMethod;
    }

    public AnalysisItem(Code code){
        this.code = code;
    }

    public Code getCode() {
        return code;
    }

    public SellItem getSellItem() {
        return sellItem;
    }

    public Platform getPlatform() {
        return platform;
    }

    public String getGoodsID() {
        return goodsID;
    }

    public BigDecimal getSteamPrice() {
        return steamPrice;
    }

    @Override
    public String toString() {
        return "AnalysisItem{" +
                "code=" + code +
                ", sellItem=" + sellItem +
                ", platform=" + platform +
                ", goodsID='" + goodsID + '\'' +
                ", steamPrice=" + steamPrice +
                '}';
    }
}

